import org.springframework.context.support.ClassPathXmlApplicationContext;

import play.Application;
import play.Logger;

public class Globals {

	private ClassPathXmlApplicationContext ctx;

	public void onStart(Application app) {
		ctx = new ClassPathXmlApplicationContext("beans.xml");
		Logger.info("Badugi Started");
	}

	public void onStop(Application app) {
		ctx.close();
		Logger.info("Badugi Stopped");
	}

}